package com.usian.service;

import com.usian.entity.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/4 19:49
 */

@FeignClient("day06-lianxi")
public interface FenginEmpService {
    @GetMapping("emp/finByEmpId")
    public Emp finByEmpId(@RequestParam("id") Integer id);

    @GetMapping("emp/findList")
    public List<Emp> findList();
}
